//
//  MainViewController.swift
//  SwiftDemo
//
//  Created by 李国卿 on 2020/1/15.
//  Copyright © 2020 guoqing.li. All rights reserved.
//

import UIKit

class MainViewController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()
        addChildVc("Home")
        addChildVc("Live")
        addChildVc("Follow")
        addChildVc("Profile")
    }
    private func addChildVc(_ name : String){
        let childVc = UIStoryboard(name: name, bundle: nil).instantiateInitialViewController()!
        addChild(childVc)
    }
    


}
